<style>
    .spin-cont { line-height: 35px; background-color: #ffffff; width: 700px; margin: 0 auto;}
    :focus{outline: none;}
    .billingButton{ border: solid 1px #ccc;height: 24px; width: 50px;letter-spacing: 1px;}
    .buttonStyle{ width: 80px; height: 30px ;letter-spacing: 1px;}
</style>
<div id="main-content">
    <div id="main" class="main">
        <div class="user-hd">
            <h2>计费详情>>{$page_title}</h2>
        </div>
        <div class="spin-cont">
            <span style="float: right;"><input type="button" value="返回" onclick="goBack()" class="buttonStyle"></span>
            <div>影院名称：{$inf.agent_name}</div>
            <div>计费方式：{$inf.billingType}</div>
            <div>幕数：{$inf.buy_hall_count|default='0'} 幕</div>
            <if condition="$inf['billing_video_play_type'] neq 7">
                <div>折扣率：<php>echo $inf['discount'] * 100</php> %</div>
            </if>
            <div>结算状态：{$inf.status}</div>
            <div>审核人：
                <notempty name="inf['verifier']">
                    {$inf.verifier}
                </notempty>
            </div>
            <div>备注：{$inf.note}</div>

            <div>周期：{$inf.start_time|date='Y-m-d',###} ~ {$inf.end_time|date='Y-m-d',###}</div>
            <div>结算日期：
                <if condition="$inf['check_time'] GT 0">
                    {$inf.check_time|date='Y-m-d',###}
                </if>
            </div>
            <div>结算金额：{$inf.money_total} 元</div>
            <div>实际结算金额：{$inf.money_really} 元</div>
            <div>结算明细：{$inf.formula} </div>
            <if condition="$inf['billing_video_play_type'] NEQ 4">
            <div>点播明细
                <form style="float: right" action="{:U('Admin/BillingVideoPlay/agentDetails')}" method="get">
                    <input type="hidden" value="{:I('get.id')}" name="id">
                    <select class="select" style="padding: 2px;border: solid 1px #ccc; width: 100px;" name="hostName">
                        <option value="">全部</option>
                        <volist name="inf['cinemaType']" id="vo">
                            <if condition="$_GET['hostName'] eq $vo['cinema_name']">
                                <option value="{$vo.cinema_name}" selected>{$vo.cinema_name}</option>
                                <else/>
                                <option value="{$vo.cinema_name}">{$vo.cinema_name}</option>
                            </if>
                        </volist>
                    </select> <input type="submit" value="搜索" class="billingButton">
                </form>
            </div>
            <div>
                <table>
                    <tr>
                        <th>影院名称</th>
                        <th>影片名称</th>
                        <th>点播时间</th>
                        <th>点播时长</th>
                        <th>影片价格（元/部）</th>
                    </tr>
                    <volist name="list" id="vo">
                    <tr>
                        <td>{$vo.cinema_name}</td>
                        <td>{$vo.video_name}</td>
                        <td>{$vo.create_time|date='Y-m-d H:i:s',###}</td>
                        <td>{$vo.play_time}</td>
                        <td>{$vo.billing_cloud_price}</td>
                    </tr>
                    </volist>
                    <empty name="list">
                        <tr>
                            <td colspan="5">没有内容...</td>
                        </tr>
                    </empty>
                    <notempty name="page">
                        <tr>
                            <td colspan="5">
                                <div class="page txt-center">
                                    {$page}
                                </div>
                            </td>
                        </tr>
                    </notempty>
                </table>
            </div>
            </if>
        </div>
    </div>
</div>
<script>
    function goBack(){
        var url="{:U('agentBalance')}"+'?id='+"{$inf.agent_id}";
        window.open(url,'_self');
    }
</script>